package com.whh.permission.service;

import com.github.pagehelper.PageInfo;
import com.whh.permission.po.Asset;
import com.whh.permission.po.AssetScrap;
import com.whh.permission.po.AssetTake;
import lombok.Data;

import java.util.Date;

public interface IAssetHandlerService {
    void takeAsset(Integer aId, Integer uId, Date createTime);

    /**
     * 查询领用资产信息
     * @return
     */
    PageInfo<AssetTake> queryAssetTakeByUId(int page, int pageSize, Integer uId);

    /**
     * 归还资产:更改status,添加updateTime,更改asset表中的status
     */
    void backAsset(Integer id,Date updateTime,Integer aId);

    /**
     * 报废资产:/报废操作,添加报废表,更改asset状态
     */
    void ScrapAsset(AssetScrap assetScrap);

    /**
     * 查询领用资产信息
     * @return
     */
    PageInfo<AssetScrap> queryAssetScrapAll(int page, int pageSize);

    /**
     *报废资产修好啦
     */
    void ScrapAssetOk(AssetScrap assetScrap);

}
